package April.First;

/**
 * @author ：黑白客，2019年04月01日
 * @类名：
 * @修改者 ：
 * @功能描述：；
 */
public class Person {
    private String name;
    private int age;
    private String ID;

    public Person(String ID){
        this.ID = ID;
    }

    public boolean equals(Object obj){
        if(obj instanceof Person){
        Person p = (Person)obj;
        return p.ID == this.ID;
        }
        return false;
    }

    public Person(String name,int age){
        this.name = name;
        this.age = age;
    }

    public void setName(String name){
        this.name = name;
    }
    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    public String getName(){
        return name;
    }
}
